@layout("/common/_form.html",{js:["/assets/comm/news/news_add.js"]}){

<form class="layui-form" id="newsForm" lay-filter="newsForm">
    <div class="layui-fluid" style="padding-bottom: 75px;">
        <div class="layui-card">
            <div class="layui-card-header">基本信息</div>
            <div class="layui-card-body">
                <div class="layui-form-item layui-row">
                    <input name="id" type="hidden"/>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">标题<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="title" name="title" placeholder="请输入标题" type="text" class="layui-input" lay-verify="required" required/>
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">内容<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <textarea id="content" name="content" placeholder="请输入内容" class="layui-input" rows="10"></textarea>
                            <input id="contentText" name="contentText" type="hidden">
                        </div>
                    </div>
                    <div class="layui-inline layui-col-md12">
                        <label class="layui-form-label">封面缩微图<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <input id="fileId" name="fileId" type="hidden" class="layui-input"/>
                            <button type="button" class="layui-btn layui-btn-sm" id="test1"><i class="layui-icon"></i>选择图片</button>
                            <div class="layui-upload-list">
                                <img class="layui-upload-img" id="demo1" width="92px" height="92px">
                                <p id="demoText"></p>
                            </div>
                        </div>
<!--                        <div class="layui-input-block">-->
<!--                            <input id="coverImagePath" name="coverImagePath" placeholder="请输入封面缩微图" type="text" class="layui-input" lay-verify="required" required/>-->
<!--                        </div>-->
                    </div>
<!--                    <div class="layui-inline layui-col-md12">-->
<!--                        <label class="layui-form-label"><span style="color: red;">*</span></label>-->
<!--                        <div class="layui-input-block">-->
<!--                            <input id="delFlag" name="delFlag" placeholder="请输入" type="text" class="layui-input" lay-verify="required" required/>-->
<!--                        </div>-->
<!--                    </div>-->
                </div>
            </div>
        </div>
    </div>
    <div class="form-group-bottom text-center">
        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
        <button type="reset" class="layui-btn layui-btn-primary" ew-event="closeDialog">&emsp;取消&emsp;</button>
    </div>

</form>

@}